package com.chen.base.http;

/**
 * @author Zephyr
 * @date 2019/9/1
 */
public enum DefaultResponseCode implements ResponseCode {

    /**
     * SUCCESS
     */
    SUCCESS(200, "请求成功"),

    /**
     * ERROR
     */
    ERROR(500, "网络异常"),

    /**
     * ILLEGAL_ARGUMENT
     */
    ILLEGAL_ARGUMENT(100, "参数异常"),
    ;

    int code;

    String message;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    DefaultResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
